/**
 * Created by Administrator on 2016/8/4.
 */

var user_name, role_name_user,oz_name_user, currentID, flag = true;

function saveAdd() {
	alert("保存失败！！！");
	alert("保存失败！！！");
	user_name = $("#user_name").val();
	role_name_user = $("#role_name_user").val();
    oz_name_user = $("#oz_name_user").val();
    alert("保存失败！！！");
    $.ajax({
        type: "GET",
        url: "usersave.json",
        data:{
        	"user_name":user_name,
        	"role_name_user":role_name_user,
        	"oz_name_user":oz_name_user
        },
        dataType: "json",
        success: function (result) {
        	if (result.data) {
                alert("保存成功！！！");
                window.location.href="user.json";
            } else {
                alert("保存失败！！！");
                window.location.href="adduser.jsp";
            }
        }
    })
}






